using PowerManage.Entity.Dtos.Users;

namespace PowerManage.Service;

public interface IUserService
{
    /// <summary>
    /// 根据用户名搜索，分页返回用户列表
    /// </summary>
    /// <param name="userPageReqDto"></param>
    /// <returns></returns>
    Task<UserPageRspDto> GetUserPageAsync(UserPageReqDto userPageReqDto);

    /// <summary>
    /// 通过用户名获取用户角色列表
    /// </summary>
    /// <param name="userName"></param>
    /// <returns></returns>
    Task<List<string>> GetRoleList(string? userName);

    /// <summary>
    /// 获取所有用户列表
    /// </summary>
    /// <returns></returns>
    List<UserAllDto> GetAll();
}